<div class="fly-panel fly-column">
  <div class="layui-container">
    <ul class="layui-clear">
      <li class="layui-hide-xs <?php if("$c/$a"=='tie/init'):?>layui-this<?php endif;?>"><a href="<?=url('tie/init')?>">首页</a></li>
      <?php
      $_cat = $this->db->cache("select * from tie_cat order by sort desc, id desc");
      foreach($_cat as $v):
      ?>
      <li class="<?php if($c.'/'.$a=='tie/lists' && isset($_GET['cid']) && $_GET['cid']==$v['id']):?>layui-this<?php endif;?>">
          <a href="<?=url('tie/lists')?>?cid=<?=$v['id']?>"><?=$v['cat_title']?></a>
      </li>
      <?php
      endforeach;
      ?>
      <?php if($userinfo):?>
      <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><span class="fly-mid"></span></li>
      <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="<?=url('user/tie')?>">我发表的贴</a></li>
    <?php endif;?>
    </ul>

    <div class="fly-column-right layui-hide-xs">
      <span class="fly-search"><i class="layui-icon"></i></span>
      <a href="<?=url('tie/add')?>" class="layui-btn">发表新帖</a>
    </div>
    <div class="layui-hide-sm layui-show-xs-block" style="margin-top: -10px; padding-bottom: 10px; text-align: center;">
      <a href="<?=url('tie/add')?>" class="layui-btn">发表新帖</a>
    </div>
  </div>
</div>
